package sugarbind_input

class Disease_Area_Agent {

    
	
    static constraints = {
		disease(unique:['area','agent'])
	}
	
	static hasOne = [disease: Disease, area: Area, agent:Agent]
	
	static mapping = {
//		id column: 'disease_area_agent_id'
		id generator: 'sequence', params: [sequence: 'disease_area_agent_id_seq']
	}
	
	public String toString(){
		disease.disease_Name + " / " + area.area_Name + " / " + agent.agent_Name + " (" + id + ")"
	}
}
